package com.isias.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.isias.model.system.SysDept;
import com.isias.model.system.SysMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysDeptMapper extends BaseMapper<SysDept> {

    @Select("select name from sys_dept where is_deleted=0 and id=#{deptId}")
    String selectNameById(String deptId);
    @Select("select * from sys_dept where status=1 and is_deleted = 0")
    List<SysDept> SelectMenusWithStatus();
}
